package com.pfzhang.enum1;

public class TestNum {

	public static void main(String[] args) {
		Season season = Season.SPRING;
		Season[] s = season.values();
		for (Season season2 : s) {
			System.out.println(season.name());
			System.out.println(season.ordinal());
		}
		Season s1 = Season.valueOf("AUTUMN");
		System.out.println(s1.ordinal());
	}
		
}
